package org.example.springbootpra1.demos.controller;

import org.example.springbootpra1.demos.bean.ChargePlot;
import org.example.springbootpra1.demos.services.service.ChargePlotService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * 充电站Controller
 *
 * @author zdcloud
 * @date 2024-09-18
 */
@RestController
@RequestMapping("/plot")
public class ChargePlotController
{
    @Autowired
    private ChargePlotService chargePlotService;

    /**
     * 查询充电站列表
     */
    @GetMapping("/list")
    public List<ChargePlot> list(ChargePlot chargePlot)
    {
        List<ChargePlot> list = chargePlotService.selectChargePlotList(chargePlot);
        return list;
    }
}